<%--@elvariable id="authority" type="com.weitu.permission.authority.entity.Authority"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>权限菜单授予</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/permission/authorityResource/edit.js"></script>
</head>
<body>
<div class="form-wrap">
    <form id="form_user" method="post">
        <div class="input-wrap">
            <label class="label">权限：${authority.name}</label>
            <ul class="tree-wrap resource-tree easyui-tree" data-options="url:'${ctx}/permission/resource/selectAllResourcesByAuthorityId.shtml?authorityId=${authority.id}',checkbox:true,cascadeCheck:false,lines:true"></ul>
        </div>
        <div class="input-wrap hide">
            <input type="hidden" name="authorityId" value="${authority.id}">
        </div>
    </form>
    <div class="form-button">
        <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'fa fa-save fa-lg'">保存</a>
        <a id="btn_clear" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'fa fa-remove fa-lg'">清空</a>
    </div>
</div>
</body>
</html>
